12-18-2024 03:37 AM
Hi Guys, i am doing ACI multipod, and i am able to successfully discover the SPINE and LEAF for POD2 . The only problem i am getting is POD2 spine and leaf going into inactive state.
I am using ACI version 15.2.
There is a command in Leaf and Spine cli to initiate command "setup-date.sh" but that is giving me error called as "permission denied"
I am not able to set new time and date for POD2 spine and leaf .
There is a difference of 2 hrs between POD1 and POD2 devices due to which it is going under Inactive state
Can anyone help me that what i can do to execute the "setup-date.sh" command
12-18-2024 10:08 PM
Hello @MalavSharma
The issue you're facing with the setup-date.sh command and the time difference between POD1 and POD2 is a common problem in ACI multipod setups. Time synchronization is critical in ACI environments, especially in multipod deployments, as it ensures proper communication and avoids issues like the one you're experiencing.
Here are some steps and suggestions to resolve the issue:
The setup-date.sh script requires elevated privileges to execute. If you're getting a "permission denied" error, it likely means you're not running the command as a privileged user. To resolve this:
Switch to the root user:
sudo su
Then try running the setup-date.sh command again.
Alternatively, prepend sudo to the command:
sudo setup-date.sh
If you still encounter issues, it could be that the script is not executable. You can make it executable by running:
chmod +x /path/to/setup-date.sh
Then try running the script again.
In ACI multipod setups, all devices (spines, leaves, and APICs) must have synchronized time. This is typically achieved using NTP (Network Time Protocol). If there is a time difference between POD1 and POD2, it can cause the devices in POD2 to go into an inactive state.
Verify NTP Configuration:
show ntp
Manually Set the Time (if NTP is not working):
clock set <hh:mm:ss> <month> <day> <year>For example:
clock set 10:30:00 Dec 19 2024
Restart NTP Service:
ntp restart
Verify Time Synchronization:
show clock
Ensure that the multipod configuration is correct and that the intersite connectivity is functioning properly. Verify the following:
IPN (Inter-Pod Network) Configuration:
Multipod Policy:
If the above steps do not resolve the issue, collect logs and debug information to identify the root cause:
Check the logs on the APIC:
show logging
Check the status of the POD2 devices:
show fabric membership
Look for any errors related to time synchronization or multipod communication.
ACI version 15.2 might have bugs or issues related to multipod setups. If the problem persists, consider upgrading to a more stable version of ACI (if available) after checking the Cisco release notes for known issues and fixes.
By addressing the time synchronization issue, you should be able to bring the POD2 devices into an active state. Let me know if you need further assistance!
Hope This Helps!!!
AshSe
Forum Tips:
12-19-2024 03:23 AM
Hi AshSe
Option 1 is not working . Direct "sudo su" command is not getting accepted but "su" command is working in Switches , then its asking for password, but there is no password only . on the switches and empty password not working.
01-07-2025 01:34 AM
Hello @MalavSharma
It seems like the switches are configured in a way that does not allow you to switch to the root user (su) or use sudo directly. This is a common scenario in Cisco ACI environments, as the switches (spines and leaves) are designed to have restricted access for security reasons. By default, Cisco ACI switches do not allow direct root access or passwordless su commands.
Since you cannot use sudo or su to execute the setup-date.sh script, you will need to address the time synchronization issue using alternative methods. Below are some steps to resolve the issue:
Cisco ACI switches (spines and leaves) do not typically allow direct execution of Linux-level scripts like setup-date.sh. Instead, you can use the built-in clock command to manually set the time on the switches.
clock set <hh:mm:ss> <month> <day> <year>For example:
clock set 10:30:00 Jan 7 2025
show clock
This will temporarily fix the time difference issue. However, this is not a permanent solution, as the time may drift again if NTP is not configured.
The best way to resolve time synchronization issues is to configure NTP (Network Time Protocol) on all devices in the fabric, including the spines and leaves in POD2. This ensures that the time is automatically synchronized across all devices.
Once NTP is configured, the time on all devices should automatically synchronize.
After configuring NTP, verify that the switches in POD2 are synchronized with the NTP server.
On the spine or leaf switches, run:
show ntp
This will display the NTP status and confirm whether the device is synchronized with the NTP server.
If NTP is configured but the time is still not synchronized, there may be connectivity issues between the switches and the NTP server. Verify the following:
If you still want to use the setup-date.sh script but cannot gain root access, you can try the following workaround:
Check the Script Location:
Run the Script as a Non-Root User:
./setup-date.sh
Modify the Script:
If none of the above solutions work, and you are still unable to resolve the issue, it is recommended to contact Cisco TAC (Technical Assistance Center) for further assistance. They can help you troubleshoot the issue and provide guidance specific to your ACI version (15.2) and environment.
Let me know if you need additional help!
Hope This Helps!!!
AshSe
Forum Tips:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide