clish -s -c "set static-route <ip>/<cidr> nexthop gateway address <gateway> on"
clish -s -c "set static-route default nexthop gateway address <gateway> on"

[ # ]

clish
  add pbr table <table_name>
  set pbr table <table_name> default route enable
  set pbr table <table_name> default nexthop gateway address <default_nexthop_ip>
  add acl <acl_name>
  set acl <acl_name> ininterface <ifname>
  set acl <acl_name> outinterface <ifname>
  add aclrule <acl_name> position 1
  set aclrule <acl_name> position 1 action pbr pbr_table <table_name> srcaddr <src_address_with_CIDR> destaddr <dst_address_with_CIDR> srcport 0-65535 destport 0-65535 protocol any tcp_estab no tos any dstfield none qspec none
  save config
  exit

Notes:

  • and can be anything you want
  • In ACL, use 0.0.0.0/0 for "any"

[ # ]

!! Change IP
clish -s -c "add interface <if name> address <new ip address>/<cidr>"
clish -s -c "delete interface <if name> address <old ip address>"

!! Remove logical interface
clish -s -c "delete interface <if name>"

!! Delete interface (Will disable VRRP monitoring)
clish -s -c "set interface <if name> disable"
clish -s -c "set interface <if name> logical-name <if name>"
clish -s -c "delete interface <if name> address <old ip address>"

!! Set interface speed
clish -s -c "set interface <physical-interface> speed 100M duplex full active on"

!! Create Interface with VRRP - Example
clish
  add interface eth-s1p2 vlanid 141 address 172.1.1.3/24 logical-name eth-s1p2c23 enable
  set vrrp interface eth-s1p2c23 monitored-circuit vrid 127 monitored-interface eth-s1p2c0 on
  set vrrp interface eth-s1p2c23 monitored-circuit vrid 127 hello-interval 1
  set vrrp interface eth-s1p2c23 monitored-circuit vrid 127 priority 90
  set vrrp interface eth-s1p2c23 monitored-circuit vrid 127 backup-address 172.1.1.1 on
  set vrrp interface eth-s1p2c23 monitored-circuit vrid 127 monitored-interface eth-s1p2c0 priority-delta 10
  set vrrp interface eth-s1p2c23 monitored-circuit vrid 127 monitored-interface eth-s1p1c0 on
  set vrrp interface eth-s1p2c23 monitored-circuit vrid 127 monitored-interface eth-s1p1c0 priority-delta 10
  save config
  exit

[ # ]

clish 
add user <username> uid <uid#> homedir /var/<username>
set user <username> shell /bin/csh
add rba user <username> role monitorRole
save config

Notes:

  • UID should be above 120. If you give a UID of 0, that will give the user read/write access
  • The 'RBA' line assigns the default readonly Voyager role, monitorRole, to the user. If the user does not need Voyager access, this can be ignored.

[ # ]

netstat -rn | grep instance    // Look for the 2 non "default" tables
netstat -rn | egrep \'instance|iCSU\'    // View PBR table
clish -s 'show aclrules'    // View ACLs
clish -s 'show acl'    // View interfaces ACLs are configured for

[ # ]

clish -s -c 'add snmp community <community> read-only'

Below is a list of all SNMP configuration options

set snmp daemon <on|off>
set snmp snmp-version v<1/2/3>
add snmp trapreceiver <trace-reciever-ip> community public version v<1/2/3>
set snmp trapPduAgent <trap-ip>
add snmp address <polling-device-ip>
add snmp read-only community <community>
add snmp read-write community <community>
set snmp traps coldstart status  <on|off>
set snmp traps authorization status <on|off>
set snmp traps cluster-member-join status <on|off>
set snmp traps cluster-member-left status <on|off>
set snmp traps cluster-member-reject status <on|off>
set snmp traps cluster-new-master status <on|off>
set snmp traps cluster-protocol-interface status <on|off>
set snmp traps link-up-down status <on|off>
set snmp traps sys-config-change status <on|off>
set snmp traps sys-config-filechange status <on|off>
set snmp traps sys-config-savechange status <on|off>
set snmp traps sys-diskfailure status <on|off>
set snmp traps sys-diskmirr-create status <on|off>
set snmp traps sys-diskmirr-delete status <on|off>
set snmp traps sys-diskmirr-syncfail status <on|off>
set snmp traps sys-diskmirr-syncsuccess status <on|off>
set snmp traps sys-fan-failure status <on|off>
set snmp traps sys-lowdiskspace status <on|off>
set snmp traps sys-nodiskspace status <on|off>
set snmp traps sys-overtemperature status <on|off>
set snmp traps sys-powersupply-failure status <on|off>
set snmp traps sys-snmpshutdown status <on|off>
set snmp traps vrrp-authfail status <on|off>
set snmp traps vrrp-newmaster status <on|off>

[ # ]

clish -c 'show sysenv all'

Notes:

  • View temperatures, voltages, fan speeds, etc.

[ # ]

ipsctl -a | grep chassis

[ # ]

clish -s -c 'set host name <hostname> ipv4 <ip>'

[ # ]