diff --git a/ibm_vpd_utils.cpp b/ibm_vpd_utils.cpp
index c7babf6..554092e 100644
--- a/ibm_vpd_utils.cpp
+++ b/ibm_vpd_utils.cpp
@@ -909,5 +909,30 @@
     }
     return std::get<1>(attrVal);
 }
+
+std::string getPowerState()
+{
+    // TODO: How do we handle multiple chassis?
+    string powerState{};
+    auto bus = sdbusplus::bus::new_default();
+    auto properties =
+        bus.new_method_call("xyz.openbmc_project.State.Chassis",
+                            "/xyz/openbmc_project/state/chassis0",
+                            "org.freedesktop.DBus.Properties", "Get");
+    properties.append("xyz.openbmc_project.State.Chassis");
+    properties.append("CurrentPowerState");
+    auto result = bus.call(properties);
+    if (!result.is_method_error())
+    {
+        variant<string> val;
+        result.read(val);
+        if (auto pVal = get_if<string>(&val))
+        {
+            powerState = *pVal;
+        }
+    }
+    cout << "Power state is: " << powerState << endl;
+    return powerState;
+}
 } // namespace vpd
 } // namespace openpower
