Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aoscx model generates continually changing backup #2297

Closed
danpoltawski opened this issue Apr 27, 2021 · 6 comments
Closed

aoscx model generates continually changing backup #2297

danpoltawski opened this issue Apr 27, 2021 · 6 comments

Comments

@danpoltawski
Copy link
Contributor

Showing the environment generates a continual diff with temperatures and uptime/usage which is changing. Looks like it needs cleaning output like https://github.com/ytti/oxidized/blob/master/lib/oxidized/model/aosw.rb#L105

diff --git a/before b/after
--- a/before
+++ b/after
@@ -32,13 +32,13 @@
 !                                                      Current
 ! Mbr/Slot-Sensor                 Module Type        temperature  Status
 ! ------------------------------------------------------------------------------
-! 1/1-PHY-01-04/13-14             line-card-module     53.00 C    normal
-! 1/1-PHY-05-12                   line-card-module     50.00 C    normal
+! 1/1-PHY-01-04/13-14             line-card-module     52.00 C    normal
+! 1/1-PHY-05-12                   line-card-module     49.00 C    normal
 ! 
-! 1/1-Inlet-Air                   management-module    12.88 C    normal
-! 1/1-Switch-ASIC-Internal        management-module    56.38 C    normal
-! 1/1-Switch-CPU-1                management-module    56.00 C    normal
-! 1/1-Switch-CPU-2                management-module    56.88 C    normal
+! 1/1-Inlet-Air                   management-module    13.12 C    normal
+! 1/1-Switch-ASIC-Internal        management-module    56.50 C    normal
+! 1/1-Switch-CPU-1                management-module    56.12 C    normal
+! 1/1-Switch-CPU-2                management-module    57.00 C    normal
 ! 
 ! 
 ! Management Modules
@@ -78,9 +78,9 @@
 ! 
 ! Time Zone          : UTC                           
 ! 
-! Up Time            : 5 weeks, 6 days, 20 hours, 35 minutes                       
-! CPU Util (%)       : 54                            
-! Memory Usage (%)   : 22                            
+! Up Time            : 5 weeks, 6 days, 22 hours, 52 minutes                       
+! CPU Util (%)       : 22                            
+! Memory Usage (%)   : 23                            
 Current configuration:
 !
 !Version ArubaOS-CX PL.10.06.0001
@rlphnger
Copy link

rlphnger commented Jun 1, 2021

Same problem here, but also with fan speeds.

diff --git a/before b/after
--- a/before
+++ b/after
@@ -16,8 +16,8 @@
 ! Mbr/Fan       Product  Serial Number  Speed   Direction      Status  RPM
 !               Name
 ! ---------------------------------------------------------------------------
-! 1/1           N/A      N/A            slow    left-to-back   ok      4126   
-! 1/2           N/A      N/A            slow    left-to-back   ok      4128   
+! 1/1           N/A      N/A            slow    left-to-back   ok      4123   
+! 1/2           N/A      N/A            slow    left-to-back   ok      4134   
 ! 1/3           N/A      N/A            N/A     left-to-back   ok      N/A 
 ! 
 ! 
@@ -42,21 +42,21 @@
 !                                                      Current
 ! Mbr/Slot-Sensor                 Module Type        temperature  Status
 ! ------------------------------------------------------------------------------
-! 1/1-PHY-01-08                   line-card-module     53.00 C    normal
-! 1/1-PHY-09-16                   line-card-module     58.00 C    normal
+! 1/1-PHY-01-08                   line-card-module     52.00 C    normal
+! 1/1-PHY-09-16                   line-card-module     59.00 C    normal
 ! 1/1-PHY-17-24                   line-card-module     53.00 C    normal
-! 1/1-Switch-ASIC-Internal        line-card-module     62.88 C    normal
+! 1/1-Switch-ASIC-Internal        line-card-module     63.00 C    normal
 ! 
-! 1/1-CPU                         management-module    49.06 C    normal
+! 1/1-CPU                         management-module    48.50 C    normal
 ! 1/1-CPU-Zone-0                  management-module    46.00 C    normal
 ! 1/1-CPU-Zone-1                  management-module    46.00 C    normal
 ! 1/1-CPU-Zone-2                  management-module    46.00 C    normal
 ! 1/1-CPU-Zone-3                  management-module    46.00 C    normal
 ! 1/1-CPU-Zone-4                  management-module    46.00 C    normal
-! 1/1-DDR                         management-module    37.00 C    normal
-! 1/1-DDR-Inlet                   management-module    30.38 C    normal
+! 1/1-DDR                         management-module    37.25 C    normal
+! 1/1-DDR-Inlet                   management-module    30.44 C    normal
 ! 1/1-Inlet-Air                   management-module    26.50 C    normal
-! 1/1-Switch-ASIC-Remote          management-module    63.44 C    normal
+! 1/1-Switch-ASIC-Remote          management-module    63.50 C    normal
 ! 
 ! 
 ! Management Modules
@@ -101,7 +101,7 @@
 ! 
 ! Time Zone          : Europe/Copenhagen             
 ! 
-! Up Time            : 5 days, 8 hours, 19 minutes                                 
+! Up Time            : 5 days, 8 hours, 16 minutes                                 
 ! CPU Util (%)       : 9                             
 ! Memory Usage (%)   : 17                            
 Current configuration:

@pifros
Copy link

pifros commented Jul 8, 2021

Hi,

A little workaround, in the aoscx.rb file.

You can modify the show system command with :
cmd 'show system | exclude "Up Time" | exclude "CPU" | exclude "Memory"

And you can comment the show environment command.

@danpoltawski
Copy link
Contributor Author

danpoltawski commented Jul 8, 2021 via email

@DRIgnazGortngschirl
Copy link
Contributor

@danpoltawski. Yes, please just create a pull request, mention this issue and close the issue afterwards. Thx!

raunz added a commit to raunz/oxidized that referenced this issue Sep 29, 2021
@mortzu mortzu closed this as completed in 3e06db1 Dec 1, 2021
@rgilijamse
Copy link

Even with the fix in PR #2372 I still have the same issue with the fan speed RPM numbers in show environment:

diff --git a/before b/after
--- a/before
+++ b/after
@@ -31,13 +31,13 @@
 ! Mbr/Tray/Fan  Name   
 ! ---------------------------------------------------------------------------
 ! 1/1           N/A      N/A            slow    port-to-power  ok      6240   
-! 1/2           N/A      N/A            slow    port-to-power  ok      6256   
-! 1/1/1         N/A      N/A            slow    port-to-power  ok      5757   
-! 1/1/2         N/A      N/A            slow    port-to-power  ok      5093   
-! 1/2/1         N/A      N/A            slow    port-to-power  ok      5842   
-! 1/2/2         N/A      N/A            slow    port-to-power  ok      5187   
-! 1/3/1         N/A      N/A            slow    port-to-power  ok      5791   
-! 1/3/2         N/A      N/A            slow    port-to-power  ok      5150   
+! 1/2           N/A      N/A            slow    port-to-power  ok      6240   
+! 1/1/1         N/A      N/A            slow    port-to-power  ok      5617   
+! 1/1/2         N/A      N/A            slow    port-to-power  ok      5096   
+! 1/2/1         N/A      N/A            slow    port-to-power  ok      5752   
+! 1/2/2         N/A      N/A            slow    port-to-power  ok      5086   
+! 1/3/1         N/A      N/A            slow    port-to-power  ok      5711   
+! 1/3/2         N/A      N/A            slow    port-to-power  ok      5170   
 ! 

@danpoltawski
Copy link
Contributor Author

Have made a pull request to fix the fan speed in #2865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants