Reference v4.1.0 Instruction Manual

528 Network OS Command Reference
53-1003115-01
oscmd
2
Description Use this command to execute selected Linux commands on the switch.
Usage Guidelines Refer to the Linux man pages for more information on the supported commands.
The oscmd command is disabled under FIPS mode.
Examples To display the ARP table:
switch# oscmd arp -a
? (127.2.1.9) at ac:de:48:02:09:07 [ether] on eth2
? (127.2.1.7) at ac:de:48:02:07:07 [ether] on eth2
? (10.17.16.3) at 00:1b:ed:0b:90:00 [ether] on eth0
? (10.17.16.1) at 02:e0:52:5a:36:5c [ether] on eth0
? (10.17.19.14) at 00:14:22:20:5c:3c [ether] on eth0
? (127.2.2.9) at ac:de:48:02:09:08 [ether] on eth2
To copy a file to a remote server:
switch# oscmd rcp file root@127.2.1.8:
switch#
switch:FID128:root# telnet 127.2.1.8
Trying 127.2.1.8...
Connected to 127.2.1.8.
Escape character is '^]'.
Linux 2.6.34.6 (sw0) (0)
sw0 login: root
Password:
sw0:L2/0: >ls
.profile .rhosts file
To copy a file using secure copy:
switch# oscmd scp file file1 hegdes@10.31.2.27:
hegdes@10.31.2.27's password: file
100% 0 0.0KB/s 00:00 file1
100% 0 0.0KB/s 00:00
See Also None