Problem:


admin@Branch-cli> show alarms last-n X [X can be any number], and it does not list the alarms.


Answer:


Please follow the below steps to troubleshoot this issue,


Can you please take the O/P of the below, 
admin@Branch-cli> show log syslog

/var/log/versa/alarms
/var/log/syslog


Please provide or try comparing the contents of the file here with a working VOS Appliance:

/etc/rsyslog.conf
/etc/init/rsyslog.conf

To verify the file permissions of the below files: 

[admin@HA-1:] $ ls -ltr /etc/ | grep rsyslog
[admin@HA-1: ~] $ ls -ltr /etc/init/ | grep rsyslog

Lastly, to verify if a dummy trap message generated internally is indeed getting printed in the alarms log, you could use the below steps, 

[admin@HA-1: ~] $ vsh connect vsmd
vsm-vcsn0> test vsm trap interface down vni-0/0
vsm-vcsn0> test vsm trap interface up vni-0/0
vsm-vcsn0> exit

Then, perform a show alarms, to check if the alarm logline for interface up or down is getting triggered.

PS: Please be noted that this is just a dummy trap message, and will not operationally bring the interface up or down.



Please feel free to write us for any feedback, or if you still have any trouble in generating alarms on the VOS at <support@versa-networks.com>.