Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
FASIUDDIN
Participant

SNMP configuration disappearing

Hello,

 

I have added new SNMP IP in firewall via CLI  like add snmp traps receiver X.X.X.X version v2 community Y.Y.Y.Y but after sometimes its automatically disappearing the configuration from device.

 

Please let me if you have any idea about this. 

0 Kudos
8 Replies
PhoneBoy
Admin
Admin

Unlike the WebUI, when configuring via clish,  save config must be executed to make configuration changes persistent.
Otherwise they won’t be persistent.

FASIUDDIN
Participant

after adding the new SNMP IP  obviously we have to save the configuration.

 

I have saved the configuration save config command.

 

then logged off and logged in Back 30 min later configuration will be disappeared.

0 Kudos
PhoneBoy
Admin
Admin

If you've, in fact made these changes as you've said, there should be evidence of this in /var/log/messages.
Likewise, if someone is changing it back, there should be evidence there as well.

Also, when you issue the necessary configuration via clish, you should see it reflected in /etc/syslog.conf.
If you don't, then do an lsattr /etc/syslog.conf and see if the "i" flag is shown (immutable).
If it is, then any change you make in Gaia won't be reflected.
Then you can run chattr -i /etc/syslog.conf to remove it.

FASIUDDIN
Participant

Hi PhoneBoy,

 

Thanks for update, I have run the above command and below are the result.

 

1.  I have checked the logs for stat /etc/syslog.conf and below are the result.

Access: 2021-09-08 10:58:18.000000000 +1000
Modify: 2016-10-21 05:25:25.000000000 +1100
Change: 2016-10-21 05:25:25.000000000 +1100

 

2, And i have run the this command lsattr /etc/syslog.conf to check the flag and below are the result.

 

------------- /etc/syslog.conf

 

 

 

 

 

 

0 Kudos
PhoneBoy
Admin
Admin

What about when you make the config change via clish?
Can you see that /etc/syslog.conf has changed?
Can you see those changes mentioned in /var/log/messages?
And when the change is reverted, do you see changes being undone?

Also, what version/JHF level is the gateway in question?

0 Kudos
FASIUDDIN
Participant

Issue got resolved by removing old scrip from device. Thank you

the_rock
Legend
Legend

Good to know, thanks for updating us.

0 Kudos
the_rock
Legend
Legend

Phoneboy made a very good point...clish always requires entering "save config" after you are done configuring things. Without it, it wont save anything.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events